#ifndef _THREE_COIN_TRICK
#define _THREE_COIN_TRICK


#include "ofMain.h"
#include "trick.h"
#include "videoBlobDetector.h"
#include "videoBlob.h"
#include "ofCvMain.h"


class threeCoinTrick : public trick {
	
	public:
		
		void setup();
		void update();
		void draw();
		void reset();
		void keyPressed(int key);
		
		void 		takeSnapshot();
		void 		clear();
		
		
		
		void 					setupCoins();
		bool					bHaveCoins;
		ofPoint2f				targets[3];
		float 					targetAngle[3];
		bool 					bMoving[3];
		videoBlob				coin[3];
		bool 					bTakeSnapshot;
		
		ofCvGrayscaleImage		meAsGray[3];
		ofCvGrayscaleImage		meAnededWithHandGray[3];
		
		bool 					bShow[3];
		float 					distToTarget[3];
		int 					nFramesCovered[3];
		// ----------------------------------
		
};

#endif	


